package belpic.spring_data.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import belpic.spring_data.domain.User;

public interface UserRepository extends CrudRepository<User, Long> {

	User findByUsername(String username);
	Page<User> findByUsernameStartingWith(String username, Pageable pageable);
}
